using imitateMacQQ.WebApi.Domain.Friend.module.Entity.dao;
using imitateMacQQ.WebApi.Domain.Friend.module.Interface;
using imitateMacQQ.WebApi.Domain.Request.utils;
using Microsoft.AspNetCore.Mvc;

namespace imitateMacQQ.WebApi.Api.Friend;

[ApiController]
[Route("api/[controller]/[action]")]
public class GetFriendMesController : ControllerBase
{
    private readonly IGetFriendMes _getFriend;

    public GetFriendMesController(IGetFriendMes getFriend)
    {
        _getFriend = getFriend;
    }


    [HttpGet]
    public async Task<Request<FriendMes>> GetFdMes(string account)
    {
        return await _getFriend.GetDimMes(account);
    }

    [HttpGet]
    public async Task<Request<FriendAllMes>> GetAlMes(string account)
    {
        return await _getFriend.GetAllMes(account);
    }
}